Deploy DXL alternative

I've been pondering my problem with deploying DXL, but just now got struck by a lightening bolt and was wondering what other's think.

I have a huge pile of DXL that all access a huge pile of #included library functions. Copying this huge pile to local clients is hopelessly unrealistic, and in our IT environment illegal. Modifying one's formal.dxl is out of the question here. Deploying on a server and using Addins and Projectaddins variables to put the DXL in pull-down menus is what I've been doing, but we are at a large company who's servers are to be co-located and always 'far away' from the clients, and we can realistically expect long delays for every opened visible module as the GUI builds the menu for that module, it reaching out repeatedly to the server for every script; such delays are currently an intolerable 45 seconds.

So what to do...

Well, it just occurred to me that we can have a single DXL deployed as 'addins' and also as 'projectaddins' so the delay in opening a module would be a modest 1 second. This 'console' DXL would present the user either buttons or pulldowns containing all the other DXL available. When selected, the console would use the 'eval_' perm to run the requested DXL. The 'eval_' command can contain some sort of 'setenv("doorsaddins",...)' command to add the relative location of the library, so the DXL works. The resulting delay might be a modest 2 second additional delay for each run DXL, but only when actually running a script.

We could encrypt the DXL, but before we do that we would read each DXL extracting the comment line and comment block and provide that to the Console for display to the user.

Mmmmm, what do you think?

  • Louie

llandale - Fri Oct 23 11:45:46 EDT 2009

Re: Deploy DXL alternative
djakad - Fri Oct 23 12:40:01 EDT 2009

Hmmm. Interesting problem. Your idea is worth a shot. It got me thinking about some other possible solutions...

1.) Are there any local servers where you can store the DXL? You don't necessarily have to copy the DXL to every local machine. You could copy the DXL to a local server, then use the -a and -J commandline switches to point to the local DXL repository. Although, I don't know if you have the same IT restrictions on local servers. Also, if you have numerous remote locations, this may not be a viable solution, as you'd need a local server at each local location.

2.) What if you built a Windows batch file that first checked the server for a new version of your DXL library, and if a new version was available, copied the new DXL to the user's local machine (each user has write access to their My Documents folder), then launched DOORS with the -a and -J commandline switches, pointing to the user's local copy of the DXL? You can create a Windows shortcut that points to this batch file, rather than a direct shortcut to DOORS.

3.) What about a "startup" DXL script? You can run a DXL script at startup.... acutally, you can run two.... one before the splash screen with the -C switch, and one after DOORS starts with the -D switch. You could accomlish the same thing as #2 above with a DXL script that runs prior to the splash screen, checks the server for a new version of your DXL library, and if there is a new version, copies it to the user's local machine.

With 2 and 3, you'd only have a small delay when a new library is available.... and during that occasional delay, you could present a message window to the user letting them know a new DXL library is being copied to their machine.

~Dave

Re: Deploy DXL alternative
djakad - Fri Oct 23 12:51:24 EDT 2009

By the way, I do use your idea of encryption in a way.... I wrote a Windows batch file that "publishes" my DXL. When I'm ready to "publish", I run this batch file which reads my local development copy of my DXL, encrypts each .dxl file to .inc files, creates a heirarchy of folders with the proper .idx and .hlp files, and creates new .dxl files which simply include the header comment lines from the original .dxl files and a single #include line which points to the encrypted .inc files. Then I copy this encrypted directory tree to the "live" dxl location. In this way, users only have access to the encrypted versions of the dxl, and cannot attempt to make their own "improvements".

Re: Deploy DXL alternative
llandale - Fri Oct 23 14:14:11 EDT 2009

djakad - Fri Oct 23 12:51:24 EDT 2009
By the way, I do use your idea of encryption in a way.... I wrote a Windows batch file that "publishes" my DXL. When I'm ready to "publish", I run this batch file which reads my local development copy of my DXL, encrypts each .dxl file to .inc files, creates a heirarchy of folders with the proper .idx and .hlp files, and creates new .dxl files which simply include the header comment lines from the original .dxl files and a single #include line which points to the encrypted .inc files. Then I copy this encrypted directory tree to the "live" dxl location. In this way, users only have access to the encrypted versions of the dxl, and cannot attempt to make their own "improvements".

Cannot copy DXL to a client, IT will have a cow about 'installing' software.

Could I see the encryption stuff?

  • Louie

Re: Deploy DXL alternative
SystemAdmin - Sat Oct 24 21:02:31 EDT 2009

llandale - Fri Oct 23 14:14:11 EDT 2009
Cannot copy DXL to a client, IT will have a cow about 'installing' software.

Could I see the encryption stuff?

  • Louie

Hi Louie,

Is CITRIX an option for you?

This issue of co-location of servers competing against geographically spread clients was something I had to deal with when I worked for a large defence contractor here in Australia. The solution was to deliver the DOORS client via a corporate CITRIX farm that was being introduced to centrally deliver many client apps. Because the DOORS server was co-located with the CITRIX farm servers, there were no performance issues with the use of "Addins" and "ProjectAddins" for delivery of DXL via menu's. I was skeptical of CITRIX at first but it turned out to be a great move - in the vast majority of cases, users were enjoying better performance that when the DOORS client was locally installed.


Paul Miller
Melbourne, Australia

Re: Deploy DXL alternative
Mathias Mamsch - Wed Nov 04 08:49:34 EST 2009

There might be another possibility for your deployment problem:

Using the DOORS startup files you can build custom menus using a DXL script. Instead of having DOORS open every DXL script for the menus and checking the header over the network, you can kind of "late bind" the menus to the scripts which gives you even more possibilities:

a) You can control menu items to appear or disappear depending on the users access rights
b) You can gray out menu items that are not relevant for a user or a state

Check out the "startupFiles" directory and the DXL manual to see how to create menus on the fly.

Regards, Mathias

Re: Deploy DXL alternative
chrisroy - Wed Feb 28 13:51:59 EST 2018

Mathias Mamsch - Wed Nov 04 08:49:34 EST 2009
There might be another possibility for your deployment problem:

Using the DOORS startup files you can build custom menus using a DXL script. Instead of having DOORS open every DXL script for the menus and checking the header over the network, you can kind of "late bind" the menus to the scripts which gives you even more possibilities:

a) You can control menu items to appear or disappear depending on the users access rights
b) You can gray out menu items that are not relevant for a user or a state

Check out the "startupFiles" directory and the DXL manual to see how to create menus on the fly.

Regards, Mathias

Hey Mathias,

Is there any folder location similar to startupFiles that executes prior to the login/splash screen?  The -cli switch runs when I want to execute the code.  I'd like to drop a file on each client machine rather than using the command line switch option.

- Christopher

Re: Deploy DXL alternative
Mathias Mamsch - Thu Mar 01 05:01:20 EST 2018

chrisroy - Wed Feb 28 13:51:59 EST 2018

Hey Mathias,

Is there any folder location similar to startupFiles that executes prior to the login/splash screen?  The -cli switch runs when I want to execute the code.  I'd like to drop a file on each client machine rather than using the command line switch option.

- Christopher

Hi Christopher, did you try to put a registry key? You might be lucky that the DOORS client might read this setting also from the registry (check with ProcMon!). An alternative would be to patch the client installation and simply include your file in the statup boot dxl files (init.dxl). Maybe this helps, regards, Mathias

Re: Deploy DXL alternative
chrisroy - Thu Mar 01 09:00:31 EST 2018

Mathias Mamsch - Thu Mar 01 05:01:20 EST 2018

Hi Christopher, did you try to put a registry key? You might be lucky that the DOORS client might read this setting also from the registry (check with ProcMon!). An alternative would be to patch the client installation and simply include your file in the statup boot dxl files (init.dxl). Maybe this helps, regards, Mathias

Including the file from the init.dxl file works as intended.  Thanks again!

 

Christopher